import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { resolve, join } from 'path'

export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      '@': resolve(__dirname, "src"),
    },
    extensions: [".ts", ".vue", ".js", ".jsx", ".tsx"], // 导入时想要省略的扩展名列表。
  },
  //------------这鸡毛接口配个毛线跨域-------------
//   server: {
//   proxy: {
//     '/app-log': {
//       target: 'http://gmall-h5-api.atguigu.cn',
//           changeOrigin: true,
//           rewrite: (path) => path.replace(/^\/app-log/, '')
//     }
//   }
// },
})
